const gulp = require("gulp");
const csso = require('gulp-csso');
const less = require('gulp-less');
//创建css任务：1、less语法转化，2.css代码压缩
gulp.task("cssmin",async() => {
	gulp.src(["./src/css/*.less","./src/css/*.css"])
		.pipe(less())
		.pipe(csso())
		.pipe(gulp.dest("dist/css"))
});
gulp.task("default",["cssmin"]);